<?php /* Smarty version Smarty-3.1.8, created on 2012-07-05 11:26:42
         compiled from "C:/xampp/htdocs/ecommerce/www/themes/adm/templates\emails\emails_lista.tpl" */ ?>
<?php /*%%SmartyHeaderCode:198044ff44591580789-22525663%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c498a07406e47e07871ac2c2297ff90cdb73e95a' => 
    array (
      0 => 'C:/xampp/htdocs/ecommerce/www/themes/adm/templates\\emails\\emails_lista.tpl',
      1 => 1341498401,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '198044ff44591580789-22525663',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4ff445916b0894_89326581',
  'variables' => 
  array (
    'banners' => 0,
    'lista' => 0,
    'listar' => 0,
    'registros' => 0,
    'total' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4ff445916b0894_89326581')) {function content_4ff445916b0894_89326581($_smarty_tpl) {?><?php if (!is_callable('smarty_function_cycle')) include 'C:\\xampp\\htdocs\\ecommerce\\www\\system\\lib\\smarty\\plugins\\function.cycle.php';
if (!is_callable('smarty_modifier_date_format')) include 'C:\\xampp\\htdocs\\ecommerce\\www\\system\\lib\\smarty\\plugins\\modifier.date_format.php';
if (!is_callable('smarty_function_paginate_prev')) include 'C:\\xampp\\htdocs\\ecommerce\\www\\system\\lib\\smarty\\plugins\\function.paginate_prev.php';
if (!is_callable('smarty_function_paginate_middle')) include 'C:\\xampp\\htdocs\\ecommerce\\www\\system\\lib\\smarty\\plugins\\function.paginate_middle.php';
if (!is_callable('smarty_function_paginate_next')) include 'C:\\xampp\\htdocs\\ecommerce\\www\\system\\lib\\smarty\\plugins\\function.paginate_next.php';
?><?php echo $_smarty_tpl->getSubTemplate ("html.tags.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("html.header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php echo $_smarty_tpl->tpl_vars['banners']->value;?>

<h2>Emails - Listagem</h2>

<table border="0" cellpadding="4" cellspacing="0" align="center" >
<thead>
<tr>
<td>#</td>
<td>Segmento</td>
<td>Nome</td>
<td>Email</td>
<td>Cadastro</td>
<td>Status</td>
<td colspan="2"></td>
</tr>
</thead>
<?php  $_smarty_tpl->tpl_vars['listar'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['listar']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['lista']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['listar']->key => $_smarty_tpl->tpl_vars['listar']->value){
$_smarty_tpl->tpl_vars['listar']->_loop = true;
?>
<tr bgcolor="<?php echo smarty_function_cycle(array('values'=>"#F0F0F1,#E0E0E0"),$_smarty_tpl);?>
">
<td><?php echo $_smarty_tpl->tpl_vars['listar']->value['emlCod'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['listar']->value['segNom'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['listar']->value['emlNom'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['listar']->value['emlMail'];?>
</td>
<td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['listar']->value['emlDatIns'],"%d/%m/%Y %H:%M:%S");?>
</td>
<td align="center">
    <a href="<?php echo @BASE_URL_ADM;?>
emails/trocaStatus/<?php echo $_smarty_tpl->tpl_vars['listar']->value['emlCod'];?>
/<?php echo $_smarty_tpl->tpl_vars['listar']->value['emlSta']=='A' ? 'I' : 'A';?>
" class="status">
        <img src="<?php echo @ADM_IMG_URL;?>
<?php echo $_smarty_tpl->tpl_vars['listar']->value['emlSta']=='A' ? 'on' : 'off';?>
.png" alt="" height="16" width="16" />
    </a>
</td>
<td><a href="<?php echo @BASE_URL_ADM;?>
emails/editar/<?php echo $_smarty_tpl->tpl_vars['listar']->value['emlCod'];?>
">Editar</a></td>
<td><a href="<?php echo @BASE_URL_ADM;?>
emails/excluir/<?php echo $_smarty_tpl->tpl_vars['listar']->value['emlCod'];?>
">Excluir</a></td>
</tr>
<?php } ?>
</table>
<?php echo $_smarty_tpl->tpl_vars['registros']->value;?>

<br />
<center><strong><?php echo $_smarty_tpl->tpl_vars['total']->value;?>
</strong> registros encontrados.</center>
<div class="pagination">
  <ul>
    <?php echo smarty_function_paginate_prev(array(),$_smarty_tpl);?>
 
        <?php echo smarty_function_paginate_middle(array('format'=>"page"),$_smarty_tpl);?>
 
    <?php echo smarty_function_paginate_next(array(),$_smarty_tpl);?>
   
  </ul>
</div>

<?php echo $_smarty_tpl->getSubTemplate ("html.footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>